package com.ruoyi.mp.domain;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.Valid;
import java.util.List;

public class MpMenuVo {
    @Schema(description = "公众号账号的编号",example = "2048")
    private Long accountId;

    @Valid
    private List<menu> menus;

    public static class menu extends MpMenu {
        private String name;
        /**
         * 子菜单数组
         */
        private List<MpMenu> children;

        public List<MpMenu> getChildren() {
            return children;
        }

        public void setChildren(List<MpMenu> children) {
            this.children = children;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public List<menu> getMenus() {
        return menus;
    }

    public void setMenus(List<menu> menus) {
        this.menus = menus;
    }
}
